//
//  WUNativeAdView.h
//  AdSDK
//
//  Created by laole918 on 2020/11/28.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "WUNativeAdDataObject.h"

NS_ASSUME_NONNULL_BEGIN
@class WUNativeAdView;

@protocol WUNativeAdViewDelegate <NSObject>
@optional

- (void)nativeAdViewWillExpose:(WUNativeAdView *)nativeAdView;

- (void)nativeAdViewDidClick:(WUNativeAdView *)nativeAdView;

- (void)nativeAdViewClosed:(WUNativeAdView *)nativeAdView;

- (void)nativeAdDetailViewClosed:(WUNativeAdView *)nativeAdView;

@end

@interface WUNativeAdView : UIView
{
    @package;
    id gdtView;
}
@property (nonatomic, weak, nullable) id<WUNativeAdViewDelegate> delegate;
@property (nonatomic, weak) UIViewController *viewController;
@property (nonatomic,assign) int sdktype;
- (void)registerDataObject:(WUNativeAdDataObject *)dataObject
            clickableViews:(NSArray<UIView *> *)clickableViews;
- (void)unregisterDataObject;
@end

NS_ASSUME_NONNULL_END
